A thin membrane that secretes serum lining an internal body cavity, such as the peritoneum, the pericardium, and the pleura.